<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core">
<body>
<ui:component>
	<s:div styleClass="wiki #{alignStyle} desc">
		<c:set var="opis" value="#{obj.getOpis(facesContext.viewRoot.locale.language)}"/>
		<p>
			<h:outputText value="#{stringUtil.substring(opis.getOpis(),length)}..."
				escape="false"></h:outputText>
			<br/>
			<h:outputText value="#{messages['label.more']}:" />
		</p>
		<f:subview rendered="#{obj.www != null}">
			<h:outputLabel value="#{messages['label.official.site']}: "></h:outputLabel>
			<h:outputLink value="http://#{obj.www}" styleClass="pnlWWW1">#{stringUtil.substring(obj.www,50)}</h:outputLink>
			<br />
		</f:subview>
		<f:subview rendered="#{opis.wikipedia != null}">
			<h:outputText value="Wikipedia: "></h:outputText>
			<h:outputLink styleClass="pnlWiki"
				value="http://#{facesContext.viewRoot.locale.language}.wikipedia.org/wiki/#{stringUtil.encode(opis.wikipedia)}">www.wikipedia.org</h:outputLink>
			<br />		
		</f:subview> 
		<script type="text/javascript">
			 jQuery(function() {	 
				 jQuery('.pnlWWW1').click(function() {
					new Boxy('<iframe frameborder="0" marginheight="0" marginwidth="0" class="loading" src="' + this.href + '"></iframe>',{title:'#{obj.www}',modal:true}).resize(850,700);
					return false; 
				 });
			 });		
			 jQuery(function() {	 
				 jQuery('.pnlWiki').click(function() {
					new Boxy('<iframe frameborder="0" marginheight="0" marginwidth="0" class="loading" src="' + this.href + '"></iframe>',{title:'www.wikipedia.org',modal:true}).resize(850,700);
					return false; 
				 });
			 });
		 </script>				
	</s:div>	
</ui:component>
</body>
</html>